from MyFrame.core import Variable, Function, add, mul, neg, sub, div, pow, radd, rmul, rsub, rdiv
from MyFrame.utils import is_iterable
from MyFrame.config import Config, no_grad

#override operators
Variable.__add__ = add
Variable.__mul__ = mul
Variable.__neg__ = neg
Variable.__sub__ = sub
Variable.__truediv__ = div
Variable.__pow__ = pow
Variable.__radd__ = radd
Variable.__rmul__ = rmul
Variable.__rsub__ = rsub
Variable.__rtruediv__ = rdiv
Variable.__array_priority__ = 200